@extends('client.layoutIndex')

@section('content')
	<div class="sp">
		<div style="width:100%;margin:auto;">
			<div class="ggw">
				<img src="{{ asset('productImg/'.$ad1->picture) }}" width="96px" height="390px">

			</div>
			<center>
				<div class="ts">
					<div class="ts-dh">
						<h3 style="float:left;width:85%;font-size:20px;font-weight:bold;text-align:left;font-family: 黑体;">服务兑换　<font style="font-size:15px;">service exchange</font></h3>
						<h3 style="float:left;width:15%;font-size:18px;font-weight:bold;">
							<a href="{{ url('client/more/'.$key1->id) }}" style="text-decoration:none;color:#000;"> 更多 >></a>
						</h3>
						<div style="clear:both;"></div>
						<span></span>
						<img src="{{ asset('client/image/xvxian.png') }}" class="img-responsive">

					</div>
					<div class="ts-sp">

						@foreach($goods_1 as $g_1)
							<div class="ts-sp-1">
								<div style="width:100%;max-width:221px;height:20px;"></div>
								<div class="ts-sp-img">
									<img src="{{ asset('productImg/'.$g_1['goods_picture']) }}" class="img-responsive">
								</div>
								<div class="ts-sp-tit">
									{{ $g_1['goods_name'] }}
								</div>
								<div class="ts-sp-jia">
									<div class="jia">
										<div class="jia-left">
											<span class="afterD">折后</span>
											<span class="afterD1">{{ ($g_1['goods_price']) }}</span>
											<span class="bias">/</span>
										</div>
										<div class="jia-right">
											<div style="width:100%;max-width:98px;height:40px;line-height:40px;overflow:hidden;">
												<s>原价{{ round($g_1['goods_price']/0.85) }}</s>
											</div>

											<div style="width:100%;max-width:98px;height:40px;overflow:hidden;">
												<b>库存{{ $g_1['goods_inventory'] }}</b>
											</div>
										</div>
									</div>

									<div class="look">
										<div class="xiangqing">
											<a href="{{ url('client/goodsShow/'.$g_1['id']) }}">查看详情>></a>
										</div>

										@if($g_1['goods_inventory'] > 0)
											<div class="liji">
												<a href="{{ url('client/toOrder/'.$g_1['id'].'/1') }}">立即兑换</a>
											</div>
										@else
											<div class="duihuan">已经兑完</div>
										@endif

									</div>
								</div>
							</div>
						@endforeach

					</div>
				<!-- <div style="margin-top: 20px;">
					<a href="{{ url('client/more') }}"> 更多商品 >></a>
				</div> -->
					{{--<div class="ts-tit">--}}
					{{--<h2 style="font-weight:bold;">[{{ $key2['name'] }}]</h2>--}}
					{{--<span>{{ $key2['english'] }}</span>--}}
					{{--<div class="mores">--}}
					{{--<a href="{{ url('client/more/'.$key2->id) }}"> more >></a>--}}
					{{--</div>--}}
					{{--</div>--}}
					{{--<a href="{{ url('client/more/'.$key2->id) }}">more</a>--}}
					{{--<div class="ts-sp">--}}

					{{--@foreach($goods_2 as $g_2)--}}
					{{--<div class="ts-sp-1">--}}
					{{--<div style="width:100%;max-width:236px;height:20px;"></div>--}}
					{{--<div class="ts-sp-img">--}}
					{{--<img src="{{ asset('productImg/'.$g_2['goods_picture']) }}" class="img-responsive">--}}
					{{--</div>--}}
					{{--<div class="ts-sp-tit">--}}
					{{--{{ $g_2['goods_name'] }}--}}
					{{--</div>--}}
					{{--<div class="ts-sp-jia">--}}
					{{--<div class="jia">--}}
					{{--<div class="jia-left">--}}
					{{--<span>&nbsp;折后</span>--}}
					{{--<span style="font-size:25px;">{{ ($g_2['goods_price']) }}</span>--}}
					{{--<span style="font-size:40px;">/</span>--}}
					{{--</div>--}}
					{{--<div class="jia-right">--}}
					{{--<div style="width:100%;max-width:98px;height:40px;line-height:40px;"><s style="margin-top:-10px;">原价{{ round($g_2['goods_price']/0.85) }}</s></div>--}}
					{{----}}
					{{--<div style="width:100%;max-width:98px;height:40px;"><b>库存{{ $g_2['goods_inventory'] }}</b></div>--}}
					{{--</div>--}}
					{{--</div>--}}
					{{--<div class="look">--}}
					{{--<div class="xiangqing">--}}
					{{--<a href="{{ url('client/goodsShow/'.$g_2['id']) }}">查看详情>></a>--}}
					{{--</div>--}}
					{{--@if($g_2['goods_inventory'] > 0)--}}
					{{--<div class="liji">--}}
					{{--<a href="{{ url('client/toOrder/'.$g_2['id'].'/1') }}">立即兑换</a>--}}
					{{--</div>--}}
					{{--@else--}}
					{{--<div class="duihuan">已经兑完</div>--}}
					{{--@endif--}}
					{{--</div>--}}
					{{--</div>--}}
					{{--</div>--}}
					{{--@endforeach--}}
					{{--</div>--}}
				</div>
			</center>

			<div class="ggw-1">
				<img src="{{ asset('productImg/'.$ad3->picture) }}" width="120px" height="390px">
			</div>

		</div>
	</div>


	<div class="sp">
		<div style="width:100%;margin:auto;">
			<div class="ggw">
				<img src="{{ asset('productImg/'.$ad4->picture) }}" width="96px" height="390px">

			</div>
			<center>
				<div class="ts">
					<div class="ts-dh">
						<!-- <h3 style="font-size:20px;font-weight:bold;text-align:left;font-family: 黑体;">商品兑换　<font style="font-size:15px;">goods exchange</font></h3> -->
						<h3 style="float:left;width:85%;font-size:20px;font-weight:bold;text-align:left;font-family: 黑体;">商品兑换　<font style="font-size:15px;">goods exchange</font></h3>
						<h3 style="float:left;width:15%;font-size:18px;font-weight:bold;">
							<a href="{{ url('client/more/'.$key2->id) }}" style="text-decoration:none;color:#000;"> 更多 >></a>
						</h3>
						<div style="clear:both;"></div>
						<span></span>
						<img src="{{ asset('client/image/xvxian.png') }}" class="img-responsive">

					</div>
					<div class="ts-sp">

						@foreach($goods_1 as $g_1)
							<div class="ts-sp-1">
								<div style="width:100%;max-width:221px;height:20px;"></div>
								<div class="ts-sp-img">
									<img src="{{ asset('productImg/'.$g_1['goods_picture']) }}" class="img-responsive">
								</div>
								<div class="ts-sp-tit">
									{{ $g_1['goods_name'] }}
								</div>
								<div class="ts-sp-jia">
									<div class="jia">
										<div class="jia-left">
											<span class="afterD">折后</span>
											<span class="afterD1">{{ ($g_1['goods_price']) }}</span>
											<span class="bias">/</span>
										</div>
										<div class="jia-right">
											<div style="width:100%;max-width:98px;height:40px;line-height:40px;overflow:hidden;">
												<s>原价{{ round($g_1['goods_price']/0.85) }}</s>
											</div>

											<div style="width:100%;max-width:98px;height:40px;overflow:hidden;">
												<b>库存{{ $g_1['goods_inventory'] }}</b>
											</div>
										</div>
									</div>

									<div class="look">
										<div class="xiangqing">
											<a href="{{ url('client/goodsShow/'.$g_1['id']) }}">查看详情>></a>
										</div>

										@if($g_1['goods_inventory'] > 0)
											<div class="liji">
												<a href="{{ url('client/toOrder/'.$g_1['id'].'/1') }}">立即兑换</a>
											</div>
										@else
											<div class="duihuan">已经兑完</div>
										@endif

									</div>
								</div>
							</div>
						@endforeach

					</div>

					{{--<div class="ts-tit">--}}
					{{--<h2 style="font-weight:bold;">[{{ $key2['name'] }}]</h2>--}}
					{{--<span>{{ $key2['english'] }}</span>--}}
					{{--<div class="mores">--}}
					{{--<a href="{{ url('client/more/'.$key2->id) }}"> more >></a>--}}
					{{--</div>--}}
					{{--</div>--}}
					{{--<a href="{{ url('client/more/'.$key2->id) }}">more</a>--}}
					{{--<div class="ts-sp">--}}

					{{--@foreach($goods_2 as $g_2)--}}
					{{--<div class="ts-sp-1">--}}
					{{--<div style="width:100%;max-width:236px;height:20px;"></div>--}}
					{{--<div class="ts-sp-img">--}}
					{{--<img src="{{ asset('productImg/'.$g_2['goods_picture']) }}" class="img-responsive">--}}
					{{--</div>--}}
					{{--<div class="ts-sp-tit">--}}
					{{--{{ $g_2['goods_name'] }}--}}
					{{--</div>--}}
					{{--<div class="ts-sp-jia">--}}
					{{--<div class="jia">--}}
					{{--<div class="jia-left">--}}
					{{--<span>&nbsp;折后</span>--}}
					{{--<span style="font-size:25px;">{{ ($g_2['goods_price']) }}</span>--}}
					{{--<span style="font-size:40px;">/</span>--}}
					{{--</div>--}}
					{{--<div class="jia-right">--}}
					{{--<div style="width:100%;max-width:98px;height:40px;line-height:40px;"><s style="margin-top:-10px;">原价{{ round($g_2['goods_price']/0.85) }}</s></div>--}}
					{{----}}
					{{--<div style="width:100%;max-width:98px;height:40px;"><b>库存{{ $g_2['goods_inventory'] }}</b></div>--}}
					{{--</div>--}}
					{{--</div>--}}
					{{--<div class="look">--}}
					{{--<div class="xiangqing">--}}
					{{--<a href="{{ url('client/goodsShow/'.$g_2['id']) }}">查看详情>></a>--}}
					{{--</div>--}}
					{{--@if($g_2['goods_inventory'] > 0)--}}
					{{--<div class="liji">--}}
					{{--<a href="{{ url('client/toOrder/'.$g_2['id'].'/1') }}">立即兑换</a>--}}
					{{--</div>--}}
					{{--@else--}}
					{{--<div class="duihuan">已经兑完</div>--}}
					{{--@endif--}}
					{{--</div>--}}
					{{--</div>--}}
					{{--</div>--}}
					{{--@endforeach--}}
					{{--</div>--}}
				</div>
			</center>

			<div class="ggw-1">
				<img src="{{ asset('productImg/'.$ad6->picture) }}" width="120px" height="390px">
			</div>

		</div>
	</div>
	<!-- --兑换商品 end-- -->

	<!-- --兑换流程-- -->

	<!-- <div class="col-md-3"></div> -->
	<div class="lc">
		<div class="lc-top">
			<h3 style="font-weight:bold;text-align:left;font-family: 黑体;font-size:20px;">兑换流程　<font style="font-size:15px;">EXCHANGE PROCESS</font></h3>
			<span></span>
			<img src="{{ asset('client/image/xvxian.png') }}" class="img-responsive">
		</div>

		<img src="{{ asset('client/image/duihuan.jpg') }}" class="img-responsive">
	</div>
	<!-- <div class="col-md-3"></div> -->

	<!-- --兑换流程 end-- -->

@stop